<script>
{% set entity = { 'parent': 'CtInfo' } %}
{% set ignore = [ 'university' ] %}
{% render "AcmeSecurityBundle:JsValidator:jsConstraintsGenerator" with { 'form': form, 'options': { 'entity': entity, 'ignore': ignore } } %}
</script>
<form class="form-horizontal" id="{{ form.vars.id }}" {{ form_enctype(form) }}>
	<input type="hidden" name="id" value="{{ contest.id }}" />
	<fieldset>
	<legend>详细信息</legend>
		{{ form_row(form.name, { 'value': contest.name }) }}
		{{ form_row(form.contestType, { 'value': contest.contestTypeInfo.id }) }}
		
		{% if is_granted('ROLE_SUPER_ADMIN') %}
		{{ form_row(form.university, { 'value': contest.applyByInfo.userInfo.university }) }}
		{{ form_row(form.applyBy, { 'value': contest.applyBy }) }}
		{% endif %}
		{#{ form_row(form.birth, { 'value': (init_form_data.userInfo.birth) ? (init_form_data.userInfo.birth.date) : '' }) }#}
	</fieldset>
	
	{{ form_rest(form) }}
</form>